<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */
/* ================== ajax额外数据模板  ================== */
/** @var \yii\web\View $this */
/** @var array $cols 字段列定义 */
// __extraData scope数据模型对象
?>
<div ng-if="__extraData" class="list-group list-group-horizontal">
    <?php foreach ($cols as $field => $label): ?>

    <div class="list-group-item mb-3" ng-if="__extraData['<?= $field ?>']">
        <div class="inline-block"><?= $label ?></div>
        <div class="inline-block" ng-bind-html="__extraData['<?= $field ?>'] | toHtml"></div>
    </div>
    <?php endforeach; ?>

</div>
